#ifndef HILL_PYRAMID
#include "Hill_Pyramid.h"
#endif

Hill_Pyramid::Hill_Pyramid()
{
	
	static GLfloat Vertices[] = { 
		0.0f,  1.0f,  0.0f,		//Top Of Triangle (Front)
		-1.0f, -1.0f, 1.0f,		//Left Of Triangle (Front)
		1.0f, -1.0f, 1.0f,		//Right Of Triangle (Front)
		0.0f,  1.0f, 0.0f,		//Top Of Triangle (Right)
		1.0f, -1.0f, 1.0f,		//Left Of Triangle (Right)
		1.0f, -1.0f, -1.0f,	//Right Of Triangle (Right)
		0.0f,  1.0f, 0.0f,		//Top Of Triangle (Back)
		1.0f, -1.0f, -1.0f,	//Left Of Triangle (Back)
		-1.0f, -1.0f, -1.0f,	//Right Of Triangle (Back)
		0.0f,  1.0f, 0.0f,		//Top Of Triangle (Left)
		-1.0f, -1.0f, -1.0f,	//Left Of Triangle (Left)
		-1.0f, -1.0f, 1.0f		//Right Of Triangle (Left)
	};
	
	static GLfloat normals[]
	= {
		0.0f, 0.0f, -1.0f,
		0.0f, 0.0f, -1.0f,
		0.0f, 0.0f, -1.0f,
		
		1.0f, 0.0f, 0.0f,
		1.0f, 0.0f, 0.0f,
		1.0f, 0.0f, 0.0f,
		
		0.0f, 0.0f, 1.0f,
		0.0f, 0.0f, 1.0f,
		0.0f, 0.0f, 1.0f,
		
		-1.0f, 0.0f, 0.0f,
		-1.0f, 0.0f, 0.0f,
		-1.0f, 0.0f, 0.0f
	};
	
	
	
	setNormals(normals);
	setVertices(Vertices);
}


Hill_Pyramid::~Hill_Pyramid()
{ }

void Hill_Pyramid::draw()
{
	
	glNormalPointer(GL_FLOAT, 0, _normals);
	glVertexPointer(3, GL_FLOAT, 0, _vertices);
	glDrawArrays(GL_TRIANGLES, 0, 12);
}